import { requestClient } from '#/api/request';

/**
 * 获取车辆列表
 */
export async function getcarList(params: {
  page: any;
  size: any;
  carplate?: any;
}) {
  return requestClient.get('/carList', {
    params,
  });
}

/**
 * 添加车辆
 */
export async function addcar(data: any) {
  return requestClient.post('/car', data);
}

/***
 * 修改车辆
 */
export async function updatecar(data: any) {
  return requestClient.put('/car/' + data.id, data);
}
/***
 * 删除车辆
 */
export async function deletecar(id: any) {
  return requestClient.delete('/car/' + id);
}
